import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';

@Component({
  selector: 'app-project-item',
  templateUrl: './project-item.component.html',
  styleUrls: ['./project-item.component.scss']
})
export class ProjectItemComponent implements OnInit {
  @Input()
  item: any;
  @Output()
  onInvite = new EventEmitter<void>();

  constructor() { }

  ngOnInit() {
  }

  /**
   * 点击邀请成员
   * 执行发射事件 onInvite
   */
  onInviteClick() {
    this.onInvite.emit();
  }
}
